<template>
  <div>
<!-- 创建食谱 -->
   <van-nav-bar>
 <template #left>
<van-icon
 name="arrow-left"
 color="#FF8800"
 size="20"
 @click="onClickLeft()"
 />
 </template>
 <template #title>
 <h3>创建食谱</h3>
 </template>
 </van-nav-bar>
    <van-uploader v-model="fileList">
      <template>
        <div class="tj">
          <img class="img1" src="/baking_log/FtMaPn5wdH3zgFOiIHxTqiXkBPk7.png">
          <div class="ts">
            <p>+食谱封面</p>
            <p>横图更容易被官方推荐哦!</p>
          </div>
        </div>
      </template>
    </van-uploader>
    <div class="spmc">
      <input class="wzys" type="text" placeholder="添加食谱名称">
    </div>
    <div class="tjfl">
      <span class="bz"></span>
      <span class="tjfl1">推荐分类</span>
    </div>
    <div class="xz" @click="show=true">
      <span>选择准确的分类可得到更多推荐</span>
      <div class="jt">
        <img class="img2" src="/baking_log/Fn6RtzB5tNDoMcXZ9xZq9_ed-av7.png">
      </div>
    </div>
    <van-overlay :show="show" @click="show = false">
      <div class="wrapper">
        <div v-show="show" class="tb">
          <img @click="show=false" class="fh" src="/baking_log/FoTuxKG5pqYKuAsT8BjrflkAxEpj.png">
          <ul>自定义分类</ul>
        </div>
      </div>
    </van-overlay>
    <div class="anniu">
      <button class="btn">下一步</button>
    </div>
  </div>
</template>

<script>
    export default {
        data() {
          return {
            fileList: [],
            show:false,
          }
        },
        methods:{
 onClickLeft(){
return this.$router.go(-1);
}}
    }
</script>

<style lang="scss" scoped>
.tb{
    background: #FFFFFF;
    height: 44px;
    z-index: 6;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 18px;
    margin: 0 auto;
    max-width: 600px;
    box-sizing: border-box;
}
.fh{
    width: 27px;
    height: 27px;
    margin: 9.5px 0;
}
ul{
    width: 100%;
    height: 44px;
    line-height: 44px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 0 90px;
    margin: 0 auto;
    box-sizing: border-box;
    color: #4A4945;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tj{
  position: relative;
  top: 120px;
  left: 100px;
}
.img1{
  display: block;
  margin: 0 auto;
  background: none;
  width: 50px;
  height: 50px;
}
.ts{
  font-size: 14px;
  color: #999999;
  margin-top: 5px;
  line-height: 20px;
  height: 20px;
}
p{
  margin: 0;
  padding: 0;
  text-align: center;
}
.spmc{
  position: relative;
  top: 150px;
  margin: 50px 15px 15px 15px;
  overflow: hidden;
}
.wzys{
  background-color: #FFFFFF;
  border: none;
  outline: none;
  margin: 50px 0 0 0;
  border-bottom: 1px solid;
  border-bottom-color: #E7E2E5;
  border-radius: 0px;
  font-size: 18px;
  height: 40px;
  line-height: 22px;
  width: 100%;
  box-sizing: border-box;
  color: #999999;;
}
.tjfl{
  margin: 30px 15px 10px 15px;
  position: relative;
  top:150px
}
.bz{
  vertical-align: middle;
  display: inline-block;
  width: 3px;
  height: 15px;
  background-color: #E98B71;
  margin-right: 5px
}
.tjfl1{
  font-size: 16px;
  color: #313131;
  font-weight: bold;
  line-height: 25px;
}
.xz{
  position: relative;
  top: 150px;
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
  margin: 0 15px;
  box-sizing: border-box;
  border: 1px solid;
  border-color: #E7E2E5;
  border-radius: 4px;
  font-size: 13px;
  color: #999999;
  cursor: pointer;
}
.jt{
  width: 19px;
  height: 19px;
  font-size: 0;
  position: absolute;
  right: 15px;
  top: 10px;
}
.img2{
  width: 100%;
  overflow: hidden;
  border: 0;
}
.wrapper {
  background: white;
  width: 100%;
  height: 100%;
}
.anniu{
  margin: 30px 15px;
  position: relative;
  top: 150px;
}
.btn{
  width: 100%;
  height: 40px;
  line-height: 38px;
  font-size: 16px;
  margin: 0 auto;
  background-color: #E98B71;
  color: #FFFFFF;
  border: 1px solid;
  border-color: #E98B71;
  border-radius: 4px;
}
</style>